import Ember from 'ember';

export default Ember.Controller.extend({
  actions:{
    createSlide:function () {
      var slide = this.get("store").createRecord("slide", {
        sortOrder:1,
        target:"HOME_BANNER",
        name:"秋季大减价",
        image:"test.jpg",
        uri:"test",
        enabled:true
      });
      slide.save();
    }
  }
});
